home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / snip9_91.arc / UNIX2DOS.C < prev    next >
C/C++ Source or Header  |  1991-09-17  |  257b  |  16 lines

  1. /*
  2. **  UNIX2DOS.C - Convert Unix-style pathnames to DOS-style
  3. */
  4.  
  5. #include <stddef.h>
  6. #include <string.h>
  7.  
  8. char *unix2dos(char *path)
  9. {
  10.       char *p;
  11.  
  12.       while (NULL != (p = strchr(path, '/')))
  13.             *p = '\\';
  14.       return path;
  15. }
  16.